package com.lagou.h1.consumer.controller;

import com.lagou.service.api.MethodService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class TestController {

    @Reference
    private MethodService methodService;

    @GetMapping
    public void test() {
        String s = methodService.methodA();
        System.out.println(s);
    }
}
